package com.finance.system.bean.pojo;

import com.finance.framework.lang.BaseObject;
import lombok.Data;

/**
 * 用户角色关系 实体bean
 * Created by CBWL on 2017/3/17.
 */
@Data
public class UserRoleRel extends BaseObject {
    private String userCode;//工号
    private Long roleId;//角色id
    @Override
    public boolean equals(Object object){
        if(object instanceof UserRoleRel){
            UserRoleRel userRoleRel = (UserRoleRel) object;
            return userRoleRel.getId().equals(super.getId());
        }
        return false;
    }
    @Override
    public int hashCode(){
        return this.getId().hashCode();
    }

}
